<div class="bg-light lter b-b wrapper-sm">
	<h1 class="m-n font-thin h4">结算单管理</h1>
</div>
<div class="wrapper-sm" ng-controller="feeSettleManagentController">
	<div class="panel panel-default">
		<div class="panel-heading font-bold">查询</div>
		<div class="panel-body">
			<label class="control-label pull-left m-t-xs w-xs">应付总编号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="table_feeSettleManagent_feeBillCode" ng-model="queryTerms.feeBillCode" placeholder="请输入应付总编号" name="feeSettleBillCode">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算承运商</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="table_feeSettleManagent_carrier" ng-model="queryTerms.carrier" placeholder="请输入结算承运商" name="carrierName">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">付款方式</label>
			<div class="col-md-2 form-group">
				<select id="table_feeSettleManagent_paymentMethod" name="paymentMethod" class="form-control input-sm" ng-model="queryTerms.paymentMethod" ng-options="x.value as x.text for x in paymentMethodDropDown">
                    <option value="">全部</option>
                </select>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">费用金额</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="table_feeSettleManagent_feeMoney" ng-model="queryTerms.feeMoney" placeholder="请输入费用金额" name="totalMoney">
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">结算起始时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="dataTime" datetimepicker plugintype="datetime" name="startTime" ng-model="queryTerms.startTime" placeholder="起始时间" class="form-control" type="text"
					/>
					<span id="opendataTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算结束时间</label>
			<div class="col-md-2 col-xs-12 form-group">
				<div class="input-group input-group-sm date">
					<input id="dataTimeEnd" datetimepicker plugintype="datetime" name="endTime" ng-model="queryTerms.endTime" placeholder="结束时间" class="form-control" type="text"
					/>
					<span id="opendataTimeEnd" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
					</span>
				</div>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">结算人员</label>
			<div class="col-md-2 form-group">
				<select id="table_feeSettleManagent_reckoner" name="reckoner" class="form-control input-sm" ng-model="queryTerms.reckoner" ng-options="x.id as x.realName for x in reckonerIdListDropDown">
                    <option value="">全部</option>
                </select>
			</div>
			<label class="control-label pull-left m-t-xs w-xs">费用状态</label>
			<div class="col-md-2 form-group">
				<select id="table_feeSettleManagent_feeStatus" name="feeStatus" class="form-control input-sm" ng-model="queryTerms.feeStatus" ng-options="x.value as x.text for x in feeStatusListDropDown">
                    <option value="">全部</option>
                </select>
			</div>
			<div class="line line-xs pull-in"></div>
			<label class="control-label pull-left m-t-xs w-xs">发货地址</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="table_feeSettleManagent_originAddress" ng-model="queryTerms.originAddress" placeholder="请输入发货地址" name="origin">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">送货地址</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="table_feeSettleManagent_destinationAddress" ng-model="queryTerms.destinationAddress" placeholder="请输入送货地址" name="destination">
			</div>
			<label class="control-label pull-left m-t-xs w-xs">合同号</label>
			<div class="col-md-2 form-group">
				<input type="text" class="form-control input-sm" id="table_feeSettleManagent_contractNumber" ng-model="queryTerms.contractNumber" placeholder="请输入合同号" name="contractNumber">
			</div>
			<label class="control-label pull-left m-t-xs w-xs"></label>
			<div class="col-md-2 col-xs-12">
				<button id="table_feeSettleManagent_query" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                    <i class="fa fa-search" ng-show="!querying"></i>
                    <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                    <span ng-show="!querying">查询</span>
                    <span ng-show="querying">查询中...</span>
                </button>
			</div>
		</div>
	</div>
	<div class="panel panel-default">
		<div class="panel-heading">
			结算单管理列表
		</div>
		<div class="table-responsive">
			<div ui-grid="gridOptions" ui-grid-selection ui-grid-pagination ui-grid-auto-resize style="height:{{heightA}}px; min-width:1000px; min-height:395px; overflow-y:hidden;">
				<div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
			</div>
		</div>
		<div class="panel-body">
			<button id="table_feeSettleManagent_detail" class="pull-right-xs btn btn-sm btn-info btn-addon" ng-show="true" ng-click="settleDetail()"><i class="fa fa-eye"></i>查看详情</button>
			<button id="table_feeSettleManagent_settleAudit" class="pull-right-xs btn btn-sm btn-primary btn-addon" ng-click="settleAudit()" ng-if="canSettleAudit"><i class="fa fa-pencil"></i>结算单审核</button>
			<button id="table_feeSettleManagent_print" ng-click="printFee()" class="pull-right-xs btn btn-sm btn-info btn-addon "><i class="glyphicon glyphicon-print"></i>打印</button>
		</div>
	</div>
</div>